package cn.mazexal.exambg.dataware;

import cn.mazexal.exambg.models.db.UserCollectDO;

import cn.mazexal.exambg.models.qry.UserCollectQry;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
*  用户收藏 Mapper
*
*/
@Mapper
public interface UserCollectMapper extends BaseMapper<UserCollectDO> {


    int deleteUserCollect(@Param("userId") Long userId, @Param("examBankId") Long examBankId, @Param("questionId") Long questionId);

    int getUserCollectCount(@Param("qry") UserCollectQry qry);

    List<UserCollectDO> getUserCollectList(@Param("qry")UserCollectQry qry);
}